package router

import (
	"demo/api"
	"github.com/gin-gonic/gin"
)

var deptController = api.DeptController{}

func DeptRouter(Router *gin.Engine) {
	routerGroup := Router.Group("/dept")
	routerGroup.GET("/", deptController.GetAll)
	routerGroup.GET("/page", deptController.GetDeptListByPage)
	routerGroup.GET("/:id", deptController.GetDeptById)
	routerGroup.DELETE("/:id", deptController.DeleteDeptById)
	routerGroup.DELETE("/deleteBatch/:ids", deptController.DeleteBatchDeptById)
	//routerGroup.PUT("/:id", deptController.UpdateDeptById)
}
